<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/12/18
  Time: 10:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="content-type" content="text/html" ;charset="gb2312">
    <title>CoolMeeting会议管理系统</title>
    <link rel="stylesheet" href="styles/common.css" />
</head>

<body>

<div class="page-content">
    <div class="content-nav">
        会议预定 > 修改会议室信息
    </div>
    <form action="${pageContext.request.contextPath }/UpdateMeetingRoomServlet">
        <fieldset>
            <legend>会议室信息</legend>
            <table class="formtable">
                <tr>
                    <td>门牌号:</td>
                    <td>
                        <input type="hidden" name="roomid" value="${requestScope.room.roomid}">
                        <input id="roomnumber" type="text"  name="roomcode" maxlength="10"  value="${requestScope.room.roomcode}"/>
                    </td>
                </tr>
                <tr>
                    <td>会议室名称:</td>
                    <td>
                        <input id="capacity" type="text" name="roomname" maxlength="20" value="${requestScope.room.roomname}"/>
                    </td>
                </tr>
                <tr>
                    <td>最多容纳人数：</td>
                    <td>
                        <input id="roomcapacity" type="text" name="roomcapacity" value="${requestScope.room.roomcapacity}" />
                    </td>
                </tr>
                <tr>
                    <td>当前状态：</td>
                    <td>
                        <c:choose>
                        <c:when test="${requestScope.room.roomstatus eq 1}">
                            <input type="radio" id="status" name="status" checked="checked" value="1" /><label>启用</label>
                            <input type="radio" id="status" name="status" value="2" /><label>停用</label>
                            <input type="radio" id="status" name="status" value="3" /><label>删除</label>
                        </c:when>
                        <c:when test="${requestScope.room.roomstatus eq 2}">
                            <input type="radio" id="status" name="status" value="1" /><label>启用</label>
                            <input type="radio" id="status" name="status" checked="checked" value="2" /><label>停用</label>
                            <input type="radio" id="status" name="status" value="3" /><label>删除</label>
                        </c:when>
                        <c:when test="${requestScope.room.roomstatus eq 3}">
                                <input type="radio" id="status" name="status" value="1" /><label>启用</label>
                                <input type="radio" id="status" name="status" value="2" /><label>停用</label>
                                <input type="radio" id="status" name="status" value="3" checked="checked" /><label>删除</label>
                        </c:when>
                        <c:otherwise>
                            <input type="radio" id="status" name="status" checked="checked" value="1" /><label>启用</label>
                            <input type="radio" id="status" name="status" value="2" /><label>停用</label>
                            <input type="radio" id="status" name="status" value="3" /><label>删除</label>
                        </c:otherwise>
                        </c:choose>
                    </td>
                </tr>
                <tr>
                    <td>备注：</td>
                    <td>
                        <textarea id="description" maxlength="200" rows="5" name="description" cols="60">${requestScope.room.description}</textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" class="command">
                        <input type="submit" value="确认修改" class="clickbutton" />
                        <input type="button" class="clickbutton" value="返回" onclick="window.history.back();" />
                    </td>
                </tr>
            </table>
        </fieldset>
    </form>
</div>

</body>

</html>
